import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { DictBusinessItemUpdateHelper } from "./DictBusinessItemUpdateHelper";
import { SPublicMiniPlayer } from "./SPublicMiniPlayer";
type int = number;
//class SStallInfo
    
    export  class SStallInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SStallInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            this.miniPlayer.__write(arg1);
            arg1.writeString(this.name);
            DictBusinessItemUpdateHelper.write(arg1, this.items);
            arg1.writeString(this.introduce);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.miniPlayer = new SPublicMiniPlayer();
            this.miniPlayer.__read(arg1);
            this.name = arg1.readString();
            this.items = DictBusinessItemUpdateHelper.read(arg1);
            this.introduce = arg1.readString();
            return;
        }

        public /* const */_type: int=20302;

        public /* var */miniPlayer: SPublicMiniPlayer;

        public /* var */name: string;

        public /* var */items: Map<any, any> /* flash.utils.Dictionary */;

        public /* var */introduce: string;

        public static /* var */_regist: SStallInfo;
    }

            SStallInfo._regist = new SStallInfo(true);
        